package com.baox.agridata.synchronous.service.shanxi.impl;

import com.baox.agridata.synchronous.dao.shanxi.TCCABMapper;
import com.baox.agridata.synchronous.entity.quanguo.Jyzdds;
import com.baox.agridata.synchronous.entity.quanguo.Jyzsdwb;
import com.baox.agridata.synchronous.entity.shanxi.TCCABEntity;
import com.baox.agridata.synchronous.service.shanxi.TCCABService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TCCABServiceImpl implements TCCABService {

    @Autowired
    private TCCABMapper tccabMapper;


    @Override
    public TCCABEntity selectTCCABInfoByFactoryCode(String factoryCode) {
        return tccabMapper.selectTCCABInfoByFactoryCode(factoryCode);
    }

    @Override
    public Integer updateTCCABStatus(String status, String lastUpdate, String mid) {
        return tccabMapper.updateTCCABStatus(status, lastUpdate, mid);
    }

    @Override
    public List<Jyzsdwb> getLocalCCABList(String startTime, String endTime, String factoryCode) {
        return tccabMapper.getLocalCCABList(startTime, endTime, factoryCode);
    }

    @Override
    public List<Jyzdds> selectJyzDDsFromTCCAB(String createTime) {
        return tccabMapper.selectJyzDDsFromTCCAB(createTime);
    }
}
